﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrderPartnerUc.ascx.cs" Inherits="VCN.admin.UC.OrderPartnerUc" %>
<link href="/admin/Style/csspagenews.css" rel="stylesheet" type="text/css" />
<link href="/admin/Style/General.css"  rel="stylesheet" type="text/css" />

<span class="lblheader">SẮP XẾP THỨ TỰ LOGO ĐỐI TÁC</span>
<hr style="margin-bottom: 20px" />
<div id="ParnterOrder">
    <table cellspacing="0" cellpadding="2" style="width: 100%;" class="cssTable" border="0">           
        <tr>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="cssPageTitleBG" colspan="2">
                <asp:Label ID="Label1" runat="server" CssClass="cssPageTitle" Text="Danh sách" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="m_lbl_thongbao" runat="server" Text=""></asp:Label>
            </td>        
        </tr>
    </table>
    <asp:GridView ID="grview" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" 
        BorderStyle="Dashed" AlternatingRowStyle-Height="30px"
        BorderWidth="1px" CellPadding="4" DataKeyNames="ID" ForeColor="Black" 
        GridLines="Vertical" Width="100%" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:CommandField EditText="Sửa" ShowEditButton="True" />            
            <asp:BoundField DataField="NAME" HeaderText="NAME" SortExpression="NAME" ReadOnly="true" />   
            <asp:BoundField DataField="IMAGE" SortExpression="IMAGE" HeaderText="IMAGE" 
                ReadOnly="true" InsertVisible="False" />         
            <asp:CheckBoxField DataField="STATUS" HeaderText="STATUS" 
                SortExpression="STATUS"  />
            <asp:BoundField DataField="ORDER" HeaderText="ORDER" SortExpression="ORDER" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ appSettings:ConnectionString %>"
        SelectCommand="SELECT tblImageLogo.[ID] AS [ID], tblImageLogo.[NAME] AS [NAME], tblImageLogo.[Url_logo] AS [URL_LOGO],tblImageLogo.[IMAGE] AS [IMAGE],tblImageLogo.[TYPE] AS [TYPE], tblImageLogo.[STATUS] AS [STATUS] ,tblImageLogo.[ORDER] AS [ORDER]
	        FROM tblImageLogo
	        WHERE tblImageLogo.Type = 2
		        ORDER BY
		        tblImageLogo.[Order] asc" UpdateCommand="UPDATE tblImageLogo SET [STATUS] = @STATUS,[Order] = @Order WHERE [Id] = @Id">
        <UpdateParameters>
            <asp:Parameter Name="Order" />
            <asp:Parameter Name="Id" />
        </UpdateParameters>
       <%-- <SelectParameters>
            <asp:ControlParameter Name="Type" ControlID="drdoptionPartner" PropertyName="SelectedValue" />
        </SelectParameters>--%>
    </asp:SqlDataSource>
</div>